export const roleObj = {
    methods: {
        checkPoint(key) {
            const userInfo = this.$store.getters.userInfo
            if (userInfo.roles && userInfo.roles.points) {
                return this.$store.state.user.userInfo.roles.points.includes(key)
            }
            return false
        }
    }
}